export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  searchMenuSpan: 6,
  align: 'center',
  column: [
    {
      type:"input",
      label: '用户名',
      prop: 'username',
      fixed: true,
      search: true,
      span: 24,
      rules: [
        {
        required: true,
        message: '请输入用户名'
      }]
    },
    {
      type:"tree",
      label: '所属部门',
      prop: 'deptId',
      span: 24,
      props:{
        label: "name",
        value: "id" ,
      },
      dicUrl: '/api/sys/dept/tree',
      dataType: "number",
      rules: [{
        required: true,
        message: '请选择部门',
        trigger: 'change'
      }]
    },
    {
      type:"select",
      label: '角色',
      prop: 'roleIds',
      multiple:true,
      overHidden: true,
      span: 24,
      dicUrl: '/api/sys/role/role_dict',
      dataType:'number',
      rules: [{
        required: true,
        message: '请选择角色',
        trigger: 'blur'
      }]
    },
    {
      type: 'input',
      label: '手机号',
      prop: 'tel',
      span: 24,
    },
    {
      type: 'input',
      label: '邮箱',
      prop: 'email',
      span: 24,
    },
    {
      width: 150,
      type: 'datetime',
      label: '创建时间',
      prop: 'createTime',
      format: 'yyyy-MM-dd HH:mm',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      display: false,
      span: 24
    }
  ]
}
